package com.bwie.auth.feign;


import com.bwie.common.domain.TUser;
import com.bwie.common.domain.dto.ForgetPasswordDto;
import com.bwie.common.domain.dto.UserInfoReq;
import com.bwie.common.domain.dto.UserRegisteredReq;
import com.bwie.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author zt181
 * @date 2025/7/15
 */

@FeignClient(name = "bwie-system")
public interface UserLoginFeign {

    @PostMapping("/system/getUserInfo")
    Result<TUser> getUserInfo(@RequestBody UserInfoReq req);

    @PostMapping("/system/save")
    Result save(@RequestBody UserRegisteredReq userInfoReq);

    @PostMapping("/system/forgetPassword")
    Result forgetPassword(@RequestBody ForgetPasswordDto req);
}
